package com.dwh.mq.spring;

import javax.jms.Destination;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jms.core.JmsTemplate;
import org.springframework.stereotype.Component;

@Component
public class Producer {
	
	@Autowired
	private JmsTemplate jmsTemplate;
	
	public void sendMsg(Destination destination, String msg) {
		jmsTemplate.convertAndSend(destination, msg);
	}

}
